package com.qh.xx;

import com.qh.xx.list.LinkedList;
import com.qh.xx.list.List;
import jdk.nashorn.internal.objects.NativeNumber;

/**
 * @description:
 * @author: zqh
 * @date: 2021/11/5 12:05
 **/
public class Queue<E>{
    private List<E> list = new LinkedList<>();

    public int size(){
        return list.size();
    }

    public boolean isEmpty(){
        return list.isEmpty();
    }

    public void enQueue(E element){
        list.add(element);
    }

    public E deQueue(){
        return list.remove(0);
    }

    public E front(){
        return list.get(0);
    }
}
